package com.lifeng.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @description:
 * @author: lifeng
 * @create: 2020/9/18 16:08
 */
@Component
@RocketMQMessageListener(topic = "lifeng-topic-2", consumerGroup = "lifeng-topic-consumer-group-2")
public class ListenerService2 implements RocketMQListener<Map> {
    @Override
    public void onMessage(Map s) {
        System.out.println("收到消息:"+s);
    }
}
